package com.example.dayday.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.dayday.pojo.Student;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.dayday.vo.StudentVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Helen
 * @since 2022-09-07
 */
public interface StudentService extends IService<Student> {

    IPage selectStudent(int page, int limit, String studentName, Long studentId);

    boolean updatePassword(String oldPassword, String newPassword,Long studentId);

    boolean updatePassword(String newPassword,Long studentId);

    void saveStudent(StudentVo studentVo);
//
//    boolean updateStudent(StudentVo studentVo);
//
    Student getStudentById(Long id);

    void importData(MultipartFile file);
}
